<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>选择场馆</title>
    <script src="js/flexible.js"></script>
    <link rel="stylesheet" href="css/flexible.css">
    <link rel="stylesheet" href="css/reset.css">
    <link rel="stylesheet" href="css/style.css">
    <script src="js/vue/vue.js"></script>
    <script src="js/vue/axios.js"></script>
    <script src="js/vue/qs.js"></script>
    <script src="js/vue/MD5.js"></script>
</head>
<body>
    <div class="xzmd_main" id="app">
        <div class="md_list" v-for="item in list" @click="select(item.Gtoken,item.Vid)">
            <img :src="item.Logo">
            <br>
            <span>{{item.Vname}}</span>
        </div>
    </div>
</body>
<script>
var app = new Vue({
    el: '#app',
    data: {
       list:[]
    },
    created(){
        this.setCanS()
    },
    methods: {
        //设置参数
        setCanS(){
            let lists=JSON.parse(sessionStorage.getItem("venueset_list"))
            for(let i in lists){
                this.list.push(lists[i])
            }
            console.log(this.list)
        },
        select(Gtoken,Vid){
            sessionStorage.setItem('token',Gtoken)
            sessionStorage.setItem('Vid',Vid)
            sessionStorage.setItem('vid',Vid)
            //跳转到首页
            let type="logo"
            sessionStorage.setItem('type',type)
			  //设置为1代表以及登录 0代表为登录
			localStorage.setItem('member',"1")
			localStorage.setItem('membervid',Vid)
			localStorage.setItem('memberGtoken',Gtoken)
			localStorage.setItem('memberType',type)
            //保存登录有效期
            let timeLoc=new Date()
            localStorage.setItem('memberTime',new Date(timeLoc.getTime() + 365*24*60*60*1000))
            window.location.href='index.html?vid='+Vid+'&type='+type+''
        }
    }  
})    
</script>
</html>